import { LocalStorage } from "quasar";
import { useStorageStore } from "src/stores/storage";

export async function DictOptions() {
  const detailLocal = LocalStorage.getItem("dc-dict");
  const storageStore = useStorageStore();
  if (detailLocal) {
    return detailLocal;
  } else {
    await storageStore.SetDcDict().then(() => {
      return LocalStorage.getItem("dc-dict");
    });
  }
}
